// 封装员工相关接口
import request from "@/utils/request";

// 获取员工列表
export function getEmployeesList() {
    return request.get('/users')
}

// 删除员工用户
export function delEmployees(id) {
    return request.delete(`/users/${id}`)
}

// 新增员工
export function addEmployees(data) {
    return request.post('/auth/local/register',data)
}

// 获取指定员工信息
export function getEmployeesDetail(id) {
    return request.get(`/users/${id}`)
}   

// 编辑员工
export function redactEmployees(data) {
    return request.put(`/users/${data.id}`,data)
}